package com.example.demo.feignClient;

import com.example.demo.entity.ResultMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author user
 */
@FeignClient(name = "store-service")
public interface StoreClient {

    @GetMapping("/index/test")
    String test(@RequestParam("from") String from);


    @PostMapping("/store/updateStore")
    ResultMsg updateStore(@RequestParam("productId") int productId, @RequestParam("amount") int amount);
}
